package com.yaowk.sfp.common.tio;

import org.tio.core.ChannelContext;

/**
 * @author 小凯
 */
public interface IBaseHandler {

    /**
     * 返回这个handler所对应的类型
     *
     * @return
     */
    Byte getHandlerType();

    /**
     * @param packet
     * @param channelContext
     * @return
     * @throws Exception
     * @author tanyaowu
     */
    void handler(BasePacket packet, ChannelContext channelContext) throws Exception;
}
